﻿<phone:PhoneApplicationPage
    x:Class="Animation.OpenFanPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.Resources>
		<Storyboard x:Name="myFanStoryboard" RepeatBehavior="Forever">
			<DoubleAnimation Duration="0:0:2" To="360" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="myFan" d:IsOptimized="True"/>
			<ColorAnimation Duration="0:0:2" To="#FFDCFF00" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="myFan" d:IsOptimized="True"/>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlock">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-495.775"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="-495.775"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="-825.039"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlock">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-1.252"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="-1.252"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="214.084"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="textBlock">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="360"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="360"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.GlobalOffsetY)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.GlobalOffsetZ)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.LocalOffsetZ)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)" Storyboard.TargetName="myFan">
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar>
			<shell:ApplicationBarIconButton IconUri="/Assets/AppBar/transport.play.png" Text="Play" Click="ApplicationBarIconButton_Click"/>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>
        <Canvas x:Name="ContentPanel" Margin="12,0,12,0" Grid.Row="1" >
        	<Path x:Name="myFan" Fill="#FFB900FF" Stroke="Black" UseLayoutRounding="False" d:LayoutRounding="Auto" Data="M164.189,0.5 C180.481,0.499999 193.689,37.4365 193.689,83 C193.689,107.829 189.767,130.095 183.561,145.22 L182.605,147.445 L183.932,146.897 C199.024,140.96 220.794,137.232 245,137.232 C290.563,137.232 327.5,150.44 327.5,166.732 C327.5,183.024 290.563,196.232 245,196.232 C221.328,196.232 199.985,192.667 184.94,186.957 L183.113,186.234 L184.024,188.441 C189.961,203.533 193.689,225.303 193.689,249.509 C193.689,295.072 180.481,332.009 164.189,332.009 C147.897,332.009 134.689,295.072 134.689,249.509 C134.689,225.303 138.417,203.533 144.354,188.441 L145.339,186.055 L143.06,186.957 C128.015,192.667 106.672,196.232 83,196.232 C37.4365,196.232 0.5,183.024 0.5,166.732 C0.5,150.44 37.4365,137.232 83,137.232 C107.918,137.232 130.255,141.182 145.382,147.426 L145.852,147.625 L145.424,146.661 C138.868,131.529 134.689,108.629 134.689,83 C134.689,37.4365 147.897,0.499999 164.189,0.5 z" Height="332.509" Canvas.Left="132.543" RenderTransformOrigin="0.506,0.497" Stretch="Fill" Canvas.Top="164.189" Width="328">
        		<Path.Projection>
        			<PlaneProjection/>
        		</Path.Projection>
        		<Path.RenderTransform>
        			<CompositeTransform Rotation="90" TranslateX="-84.041" TranslateY="-80.483"/>
        		</Path.RenderTransform>
        	</Path>
        	<TextBlock x:Name="textBlock" Height="68" Canvas.Left="539" TextWrapping="Wrap" Text="Hello" Canvas.Top="13" Width="219" Foreground="Red" FontSize="53.333" RenderTransformOrigin="0.5,0.5">
        		<TextBlock.RenderTransform>
        			<CompositeTransform/>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        </Canvas>

        <!--ContentPanel - place additional content here-->
    </Grid>

</phone:PhoneApplicationPage>